package com.feng.common.db.querydsl;

import java.io.Serializable;
import java.util.List;

/**
 * 返回数据
 */
public class FetchResponse<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 总行数
     */
    private long rows;
    /**
     * 起始记录
     */
    private long start;

    private List<T> data;

    public long getRows() {
        return rows;
    }

    public void setRows(long rows) {
        this.rows = rows;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "FetchResponse{" +
                "rows=" + rows +
                ", start=" + start +
                ", data=" + data +
                '}';
    }
}
